blktapctrl: Fix too early close of pipes
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 18:46:26 +0000 (18:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 18:46:26 +0000 (18:46 +0000)
commit3dc413c7bd82ddb93a3c7e25d15002a15e0e250c
tree2e6482e13d091719d02626053495fc6b90940132
parent57871f919d89cc3f323dabcb76dd5344595e756e
blktapctrl: Fix too early close of pipes

Connections to ioemu have single_handler set, so they are closed as
soon as all images of a certain type are closed. This is wrong with
ioemu: All images that belong to the same domain are handled by the
same backend process (usually qemu-dm, but also tapdisk-ioemu for
domains without device model), regardless of the image type.

This patch checks for the same-domain condition for ioemu connections.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
tools/blktap/drivers/blktapctrl.c